<!DOCTYPE html>
<html lang="en">
<admintpl file="header" />
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>本站用户</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Indexadmin/Countrylist')}">
        ID：
        <input type="text" name="Country_id" style="width: 100px;" value="{:I('request.Country_id')}" placeholder="请输入用户ID">
        关键字：
        <input type="text" name="Country" style="width: 200px;" value="{:I('request.Country')}" placeholder="用户名/昵称/邮箱">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:U('Indexadmin/Countrylist')}">清空</a>
        <a class="btn btn-danger" href="#" data-toggle='modal' data-target='#example' style="float: right">添加</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">ID</th>
                <th>国家名</th>
                <th>出发城市</th>
                <th>线路类型</th>
                <th>报名截止</th>
                <th>状态</th>
                <th align="center">操作</th>
            </tr>
            </thead>
            <tbody>
            <php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
            <foreach name="list" item="vo">
                <tr>
                    <td align="center">{$vo.id}</td>
                    <td>{$vo['Country_id']?$vo['Country_id']:($vo['mobile']?$vo['mobile']:L('THIRD_PARTY_USER'))}</td>
                    <td>{$vo['Country']?$vo['Country']:L('NOT_FILLED')}</td>
                    <td>{$user_statuses[$vo['user_status']]}</td>
                    <td align="center">
                        <neq name="vo.id" value="1">
                            <a href="{:U('indexadmin/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('BLOCK_USER_CONFIRM_MESSAGE')}">{:L('BLOCK_USER')}</a>|
                            <a href="{:U('indexadmin/cancelban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:L('ACTIVATE_USER')}</a>
                            <else/>
                            <a style="color: #ccc;">{:L('BLOCK_USER')}</a>|
                            <a style="color: #ccc;">{:L('ACTIVATE_USER')}</a>
                        </neq>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
    <div class="container">
        <div id="example" class="modal hide fade in" style="display: none; ">
            <div class="modal-body">
                <h4>添加出发时间</h4>
                <form method="post" class="form-horizontal js-ajax-form">
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label">国家名:</label>
                            <div class="controls">
                                <select>
                                    <option>请选择</option>
                                    <option>国家A</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">出发城市:</label>
                            <div class="controls">
                                <select>
                                    <option>请选择</option>
                                    <option>城市A</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">线路类型:</label>
                            <div class="controls">
                                <select>
                                    <option>请选择</option>
                                    <option>线路A</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">报名截止:</label>
                            <div class="controls">
                                <input type="text" id="flags" name="flags">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">状态:</label>
                            <div class="controls">
                                <input type="text" id="status" name="status">
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-actions">
                        <a href="#" id="btn" class="btn btn-success">确定</a>
                        <a href="#"  class="btn" data-dismiss="modal">取消</a>
                        <span id="mess" style="color: red;"></span>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>

</script>
</body>
</html>